package com.yupi.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 任务操作日志实体（独立于生产执行审计）
 * 对应表：task_operation_log
 */
@Data
@TableName("task_operation_log")
public class TaskOperationLog implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("task_id")
    private Long taskId;

    @TableField("operation_type")
    private String operationType; // CLAIM / START / COMPLETE

    @TableField("operator_name")
    private String operatorName;

    @TableField("operation_time")
    private LocalDateTime operationTime;

    @TableField("remark")
    private String remark;

    @TableField("created_at")
    private LocalDateTime createdAt;

    private static final long serialVersionUID = 1L;
}